///AdAppVo
class AdAppVo {
    
    ///展示时间(秒)
    int? duration;
    
    ///首次启动间隔(秒)，值为-1时无广告，并且本次启动不再获取广告
    int? firstInterval;
    
    ///间隔时间(秒)，从开始展示计算
    int? interval;
    
    ///素材列表
    List<AdItem>? items;

    AdAppVo({
        this.duration,
        this.firstInterval,
        this.interval,
        this.items,
    });

    factory AdAppVo.fromJson(Map<String, dynamic> json) => AdAppVo(
        duration: json["duration"],
        firstInterval: json["firstInterval"],
        interval: json["interval"],
        items: json["items"] == null ? [] : List<AdItem>.from(json["items"]!.map((x) => AdItem.fromJson(x))),
    );

    Map<String, dynamic> toJson() => {
        "duration": duration,
        "firstInterval": firstInterval,
        "interval": interval,
        "items": items == null ? [] : List<dynamic>.from(items!.map((x) => x.toJson())),
    };
}


///AdItem
class AdItem {
    
    ///图标
    String? icon;
    
    ///广告标识
    String? id;
    
    ///跳转地址
    String? url;

    AdItem({
        this.icon,
        this.id,
        this.url,
    });

    factory AdItem.fromJson(Map<String, dynamic> json) => AdItem(
        icon: json["icon"],
        id: json["id"],
        url: json["url"],
    );

    Map<String, dynamic> toJson() => {
        "icon": icon,
        "id": id,
        "url": url,
    };
}